/*******************************************************************************
* Copyright (c) 2010, 2018 西安秦晔信息科技有限公司
* Licensed under the Apache License, Version 2.0 (the "License");
*    you may not use this file except in compliance with the License.
*    You may obtain a copy of the License at
*
*       http://www.apache.org/licenses/LICENSE-2.0
*
*    Unless required by applicable law or agreed to in writing, software
*    distributed under the License is distributed on an "AS IS" BASIS,
*    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*    See the License for the specific language governing permissions and
*    limitations under the License.
*******************************************************************************/
package com.qinyeit.serviceapp.entity;

import lombok.Builder;
import lombok.experimental.Tolerate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * ClassName: DishesFeedRelation <br/>
 * Function: 菜品加料关系 <br/>
 * date: 2018-11-23 13:44:26 <br/>
 *
 * @author liuwenjin
 * @version  1.0
 * @since JDK 1.8
 */
@Builder
@Entity
@Table(name="dishes_feed_relations")
public class DishesFeedRelation extends MerchantGroupBaseEntity<Long> {

	private static final long serialVersionUID = 1L;

	// 菜品库 
    @Column(name="store_id")
	private Long storeId = null;

	// 菜品 
    @Column(name="dishes_id")
	private Long dishesId = null;

	// 加料类别id 
    @Column(name="category_id")
	private Long categoryId = null;

	// 加料类别名称 
    @Column(name="category_name", length = 300)
	private String categoryName = null;

	// 加料id 
    @Column(name="feed_id")
	private Long feedId = null;

	// 加料名称 
    @Column(name="name", length = 300)
	private String name = null;

	// 价格 
    @Column(name="price",scale=2)
	private Double price = null;



	@Tolerate
	public DishesFeedRelation() {
		
	}
    @Tolerate
	public DishesFeedRelation(Long id){
    	super.setId(id);
    }
	
	/**
	 * 获取菜品库
	 */
	public Long getStoreId() {
		return this.storeId;
	}

    /**
     * 设置菜品库
     */
	public DishesFeedRelation setStoreId(Long storeId) {
		this.storeId = storeId;
		return this;
	}

	/**
	 * 获取菜品
	 */
	public Long getDishesId() {
		return this.dishesId;
	}

    /**
     * 设置菜品
     */
	public DishesFeedRelation setDishesId(Long dishesId) {
		this.dishesId = dishesId;
		return this;
	}

	/**
	 * 获取加料类别id
	 */
	public Long getCategoryId() {
		return this.categoryId;
	}

    /**
     * 设置加料类别id
     */
	public DishesFeedRelation setCategoryId(Long categoryId) {
		this.categoryId = categoryId;
		return this;
	}

	/**
	 * 获取加料类别名称
	 */
	public String getCategoryName() {
		return this.categoryName;
	}

    /**
     * 设置加料类别名称
     */
	public DishesFeedRelation setCategoryName(String categoryName) {
		this.categoryName = categoryName;
		return this;
	}

	/**
	 * 获取加料id
	 */
	public Long getFeedId() {
		return this.feedId;
	}

    /**
     * 设置加料id
     */
	public DishesFeedRelation setFeedId(Long feedId) {
		this.feedId = feedId;
		return this;
	}

	/**
	 * 获取加料名称
	 */
	public String getName() {
		return this.name;
	}

    /**
     * 设置加料名称
     */
	public DishesFeedRelation setName(String name) {
		this.name = name;
		return this;
	}

	/**
	 * 获取价格
	 */
	public Double getPrice() {
		return this.price;
	}

    /**
     * 设置价格
     */
	public DishesFeedRelation setPrice(Double price) {
		this.price = price;
		return this;
	}
}
